﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/inLineCpk/inLineCpk" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="inLineCpk" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>InlineCpk管控项目：</label>
            <g:select name="EDC_ITEM" from="${edcItemList}" data-toggle="selectpicker" data-width="180" data-live-search="true" optionKey="EDC_ITEM" optionValue="EDC_ITEM" value="${EDC_ITEM}" noSelection="['':'--ALL--']" />
            <label>开始时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <label>结束时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH:mm:ss')}" >&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/inLineCpk/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>
<g:if test="${inLineCpk.size > 0}">
<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th align="center" width="200" rowspan="2">InLineCpk管控项目</th>
                <th align="center" width="100" rowspan="2">封装类型</th>
                <th align="center" width="80" rowspan="2">线型号</th>
                <th align="center" width="120" rowspan="2">Spec</th>
                <th align="center" width="255" rowspan="2">频度</th>
                <th align="center" width="60" colspan="12">Cpk</th>
            </tr>
            <tr>
                <th align="center" width="60">Jan</th>
                <th align="center" width="60">Feb</th>
                <th align="center" width="60">Mar</th>
                <th align="center" width="60">Apr</th>
                <th align="center" width="60">May</th>
                <th align="center" width="60">Jun</th>
                <th align="center" width="60">Jul</th>
                <th align="center" width="60">Aug</th>
                <th align="center" width="60">Sep</th>
                <th align="center" width="60">Oct</th>
                <th align="center" width="60">Nov</th>
                <th align="center" width="60">Dec</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${inLineCpk}" status="i" var="tableInstance">
                <tr>
                    <td align="center" width="200">${tableInstance.EDC_ITEM}</td>
                    <td align="center" width="80">${tableInstance.RESERVED1}</td>
                    <td align="center" width="80">${tableInstance.LINE_MODEL}</td>
                    <td align="center" width="120">${tableInstance.SPEC}</td>
                    <td align="center" width="120">${tableInstance.FREQUENCY}</td>

                    <td align="center" width="60">${tableInstance.JAN}</td>
                    <td align="center" width="60">${tableInstance.FEB}</td>
                    <td align="center" width="60">${tableInstance.MAR}</td>
                    <td align="center" width="60">${tableInstance.APR}</td>
                    <td align="center" width="60">${tableInstance.MAY}</td>
                    <td align="center" width="60">${tableInstance.JUN}</td>
                    <td align="center" width="60">${tableInstance.JUL}</td>
                    <td align="center" width="60">${tableInstance.AUG}</td>
                    <td align="center" width="60">${tableInstance.SEP}</td>
                    <td align="center" width="60">${tableInstance.OCT}</td>
                    <td align="center" width="60">${tableInstance.NOV}</td>
                    <td align="center" width="60">${tableInstance.DEC}</td>
                </tr>
            </g:each>
            </tbody>
</div>
</g:if>
